#!/bin/bash
# set -ex
time=$(date "+%Y-%m-%d %H:%M:%S")
echo "${time}"
user=$(whoami)

echo "${user}"

git config --global --unset-all safe.directory||true

git config --global color.ui true
git config --global grep.lineNumber true
git config --global core.autocrlf false
git config --global core.safecrlf true
git config pull.rebase false

git log  -3 --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)' --abbrev-commit --date=relative
git pull
git add .
git status
git commit -m "${time} updated by ${user}"||true
git push 
 
git remote -v